package com.linchong.helloworld.entity;

import com.alibaba.fastjson.annotation.JSONField;

import java.util.Date;

/**
 * @BelongsProject:springboothelloworld
 * @BelongsPackage:com.linchong.helloworld
 * @Author:linchong
 * @CreateTime:2018-08-11 20:07
 * @Description:测试实体类
 */
public class User {

    private int id;
    private String name;

    //com.alibaba.fastjson.annotation.JSONField;
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**
     * 不想返回remarks字段信息
     * 设置自定义字段：是否要序列化
     */
    @JSONField(serialize = false)
    private String remarks; //添加备注

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
